theSum = 0
count = 0
while True:
    num = input("请输入一个数字：")
    if num == ';':
        break;
    num = float(num)
    theSum += num
    count += 1
print(f'平均值为:{theSum / count}')